﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="wfMantenimientoVendedor.aspx.cs" Inherits="WebGustozzi.ModuloVentas.wfMantenimienroVendedor" EnableEventValidation="true" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Aplicación Web Gustozzi</title>
    <link href="//App_Themes/SkinFile/StyleSheet.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .style1
        {
            width: 20px;
            height: 28px;
        }
        .style2
        {
            width: 110px;
            height: 28px;
        }
        .style4
        {
            height: 28px;
            width: 255px;
        }
        .style5
        {
            width: 255px;
        }
    </style>
    <script type="text/javascript" src="../SCRIPT/ManejarControles.js"></script> 
    <script type="text/javascript" src="../SCRIPT/DialogosMaster.js"></script> 
    <script type="text/javascript">
        function Cerrar() {
            window.close();
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">

      <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager>
      <asp:UpdatePanel ID="UpdatePanel1" runat="server"><contenttemplate> 

      <div class="popup_Container">
        <div class="popup_Titlebar" id="PopupHeader">
            <div class="TitlebarLeft">            
                <%--Titulo--%>
                  <table style="width:100%" cellpadding="0" cellspacing="0" border="0">
                    <tr>
                        <td >
                            <asp:Label id="lblTarea" runat="server" Text=":: MANTENIMIENTO VENDEDOR" 
                                SkinID="labelTitulo"></asp:Label>
                        </td>
                    </tr>    
                    <tr>
                        <td style="HEIGHT: 10px"></td>
                    </tr>
                </table>
            </div>
            <div class="TitlebarRight" onclick="cancel();">
            </div>
        </div>
        <div class="popupBusqueda">
        <div id="contenedor1">
                <asp:HiddenField ID="hdf_InicioGrilla" runat="server"/>
               
                     <%--Datos del Busqueda--%>
        <table style="width:100%" cellpadding="0" cellspacing="0" border="0" class="tdmarcoTitulo">
            <tr>
                <td colspan="3">
                <table style="width:100%" cellpadding="0" cellspacing="0" border="0">
                    <tr>
                        <td class="tdfondoTitulo" style="width:100%; HEIGHT: 18px" align="left" colspan="9">
                            <asp:Label ID="Label1" runat="server" SkinID="labelsubTituloSkin"  
                                Text=" :: Datos Vendedor " Width="230px"></asp:Label>
                        </td>
                    </tr>
                </table>
                </td>
            </tr>
           <tr>
                <td class="style1">
                </td>
                <td class="style2">
                    <asp:Label ID="Label2" runat="server" Text="Código" SkinID="labelTextSkin"></asp:Label>
                </td>
                <td class="style4" >
                    <asp:TextBox ID="txtCodigoVendedor" runat="server" Width="60px" 
                        ontextchanged="txtCodigoVendedor_TextChanged" 
                        SkinID="CajaTextoSkinNumSinDec" MaxLength="7"></asp:TextBox>
                </td>
            </tr>
           <tr>
                <td  style="height: 26px;">
                </td>
                <td >
                    <asp:Label ID="Label3" runat="server" Text="Nombres" SkinID="labelTextSkin"></asp:Label>
                </td>
                <td class="style5" >
                    <asp:TextBox ID="txtNombres" runat="server" Width="150px" 
                        SkinID="CajaTextoSkin" MaxLength="60"></asp:TextBox>
                </td>
            </tr>
           <tr>
                <td  style="height: 26px;">
                </td>
                <td >
                    <asp:Label ID="Label10" runat="server" Text="Ap. Paterno" 
                        SkinID="labelTextSkin"></asp:Label>
                </td>
                <td class="style5" >
                    <asp:TextBox ID="txtApellidoPaterno" runat="server" Width="120px" 
                        SkinID="CajaTextoSkin" MaxLength="40"></asp:TextBox>
                </td>
            </tr>
           <tr>
                <td  style="height: 26px;">
                </td>
                <td >
                    <asp:Label ID="Label11" runat="server" Text="Ap. Materno" 
                        SkinID="labelTextSkin"></asp:Label>
                </td>
                <td class="style5" >
                    <asp:TextBox ID="txtApellidoMaterno" runat="server" Width="120px" 
                        SkinID="CajaTextoSkin" MaxLength="40"></asp:TextBox>
                </td>
            </tr>
           <tr>
                <td  style="height: 26px;">
                </td>
                <td >
                    <asp:Label ID="Label4" runat="server" Text="Nro. Documento" 
                        SkinID="labelTextSkin"></asp:Label>
                </td>
                <td class="style5" >
                    <asp:TextBox ID="txtNroDoc" runat="server" Width="80px" 
                        SkinID="CajaTextoSkinNum" MaxLength="8"></asp:TextBox>
                </td>
            </tr>
           <tr>
                <td  style="height: 26px;">
                </td>
                <td >
                    <asp:Label ID="Label5" runat="server" Text="Local Comercial" 
                        SkinID="labelTextSkin"></asp:Label>
                </td>
                <td class="style5" >
                    <asp:DropDownList ID="ddlLocalComercial" runat="server" 
                        SkinID="DropDownListTextSkin" Width="120px" AppendDataBoundItems="True">
                        <asp:ListItem Value="0">--Seleccione--</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
           <tr>
                <td  style="height: 26px;">
                </td>
                <td >
                    <asp:Label ID="Label6" runat="server" Text="Zona" SkinID="labelTextSkin"></asp:Label>
                </td>
                <td class="style5" >
                    <asp:DropDownList ID="ddlZona" runat="server" 
                        SkinID="DropDownListTextSkin" Width="100px" AppendDataBoundItems="True">
                        <asp:ListItem Value="0">--Seleccione--</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
           <tr>
                <td  style="height: 26px;">
                </td>
                <td >
                    <asp:Label ID="Label7" runat="server" Text="Sueldo" SkinID="labelTextSkin"></asp:Label>
                </td>
                <td class="style5" >
                    <asp:TextBox ID="txtSueldo" runat="server" Width="70px" 
                        SkinID="CajaTextoSkinNum" MaxLength="9"></asp:TextBox>
                </td>
            </tr>
           <tr>
                <td  style="height: 26px;">
                </td>
                <td >
                    <asp:Label ID="Label8" runat="server" Text="Comisión" SkinID="labelTextSkin"></asp:Label>
                </td>
                <td class="style5" >
                    <asp:TextBox ID="txtComision" runat="server" Width="40px" 
                        SkinID="CajaTextoSkinNum" MaxLength="5"></asp:TextBox>
                &nbsp;<asp:Label ID="Label12" runat="server" Text="%" SkinID="labelTextSkin"></asp:Label>
                </td>
            </tr>
            <div id="divEstado" runat="server" visible="false">
           <tr>
                <td  style="height: 26px;">
                </td>
                <td >
                    <asp:Label ID="Label9" runat="server" Text="Estado" SkinID="labelTextSkin"></asp:Label>
                </td>
                <td class="style5" >
                    <asp:RadioButtonList ID="rblEstado" runat="server" RepeatDirection="Horizontal" 
                        SkinID="RadioButtonTextSkin" Width="140px">
                        <asp:ListItem Selected="True">Activo</asp:ListItem>
                        <asp:ListItem>Inactivo</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
            </div>
            <tr><td style="height:10px" colspan="4"></td></tr>
        </table>
        <table>
            <tr style="height:10px"><td></td></tr>
        </table>
        <div id="divMensaje" runat="server" visible = "false">
        <table style="width:100%" cellpadding="0" cellspacing="0" border="0">
                <tr><td align="center">
                    <asp:Label ID="lblMsj" runat="server" SkinID="labelMessageSkin"></asp:Label>
                </td></tr>
        </table>
        </div>
        
        <%--Controles de comando--%>
        <table>
            <tr>
                <td style="height:26px" align="left" >
                    &nbsp;<asp:ImageButton ID="imbGuardar" runat="server" 
                        ImageUrl="~/imagenes/bn_guardar.jpg" 
                        ToolTip="Guardar Vendedor" onclick="imbGuardar_Click"  />
                    &nbsp;<asp:ImageButton ID="imbCancelar" runat="server" 
                        ImageUrl="~/imagenes/bn_cancelar.jpg" 
                        ToolTip="Cancelar registro de vendedor" onclientclick="Cerrar()"   />
                    <cc1:ConfirmButtonExtender ID="ConfirmButtonExtender1" runat="server" TargetControlID="imbCancelar" ConfirmText="¿Seguro de cancelar y perder los cambios?">
                    </cc1:ConfirmButtonExtender>
                    &nbsp;<asp:ImageButton ID="imbCerrar" runat="server" 
                        ImageUrl="~/imagenes/bn_cerrar.jpg" onclientclick="Cerrar()" 
                        ToolTip="Cerrar" Visible="False" />
            </td></tr>
        </table>
    
            </div>

        </div>
        
    </div>

    </contenttemplate> </asp:UpdatePanel>
</form>
</body>
</html>